import request from '@/utils/request'

    // getsubCoursePageList: query => post('/api/admin/subCourse/subCoursePage', query),
    export function getsubCoursePageList(data) {
        return request({
          url: '/api/admin/subCourse/subCoursePage',
          method: 'post',
          data: data
        })
      }
    // createsubCourse: query => post('/api/admin/subCourse/edit', query),
    export function createsubCourse(data) {
        return request({
          url: '/api/admin/subCourse/edit',
          method: 'post',
          data: data
        })
      }
    // deletesubCourse: id => get('/api/admin/subCourse/delete/' + id),
    export function deletesubCourse(id) {
        return request({
          url: '/api/admin/subCourse/delete/' + id,
          method: 'get'
        })
      }
    // changeStatus: id => get('/api/admin/subCourse/changeStatus/' + id),
    export function changeStatus(id) {
        return request({
          url: '/api/admin/subCourse/changeStatus/' + id,
          method: 'get'
        })
      }
    // selectsubCourse: id => get('/api/admin/subCourse/select/' + id),
    export function selectsubCourse(id) {
        return request({
          url: '/api/admin/subCourse/select/' + id,
          method: 'get'
        })
      }
    // //上传视频
    // bindPaper: query => post('/api/admin/subCourse/bindExamPaper', query),
    export function bindPaper(data) {
        return request({
          url: '/api/admin/subCourse/bindExamPaper',
          method: 'post',
          data: data
        })
      }
    // videoupLoad: query => post('/api/admin/subCourse/videoUpload', query),
    export function videoupLoad(data) {
        return request({
          url: '/api/admin/subCourse/videoUpload',
          method: 'post',
          data: data
        })
      }
    // //获取视频绑定的试卷
    // getPager: data =>get("/api/admin/subCourse/getBindExamPaper/" +data),
    export function getPager(data) {
        return request({
          url: '/api/admin/subCourse/getBindExamPaper/' + data,
          method: 'get'
        })
      }
    // ///管理端：获取指定目录视频文件
    // getViedo: data =>get("/api/admin/subCourse/scanVideo" ,data),
    export function getViedo(data) {
        return request({
          url: '/api/admin/subCourse/scanVideo',
          method: 'get',
          data: data
        })
      }
    // ///管理端：视频已手动复制时，返回视频信息
    // insertViedo: query => post('/api/admin/subCourse/videoInsert', query),
    export function insertViedo(data) {
        return request({
          url: '/api/admin/subCourse/videoInsert',
          method: 'post',
          data: data
        })
      }

